package pars.itqiqi.jdbc.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;
import pars.itqiqi.jdbc.mapper.UserMapper;
import pars.itqiqi.jdbc.pojo.User;
import pars.itqiqi.jdbc.service.UserService;

import java.util.List;

/**
 * @author kevin_琪琪
 * @version 1.0
 * @description
 * @date 2022-07-13 19:47
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Autowired
    private UserMapper userMapper;

    /**
     * 获取全部的用户
     * @return 返回全部用户的List集合
     */
    @Override
    public List<User> getAllUser() {
        return userMapper.selectList(null);
    }

}
